package com.lvmama.autoconfig;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class CustomerStartupRunner implements CommandLineRunner{
	/**  
	* @Title：CustomerStartupRunner.java
	* @Author:zhoutianqi
	* @Description:
	* @Date：2017年2月21日下午7:51:47  
	*/
	@Autowired
	private ConfigManager configManager;
	@Override
    public void run(String... args) throws Exception {
        System.out.println(">>>>>>>>>>>>>>>服务启动，加载数据中<<<<<<<<<<<<<");
        //缓存配置信息
        configManager.init("");
        System.out.println(">>>>>>>>>>>>>>>服务启动，数据加载完毕<<<<<<<<<<<<<");
    }
}
